hvm: Fix ACPI shutdown, broken by my previous changeset.
authorKeir Fraser <keir@xensource.com>
Sat, 12 May 2007 15:24:50 +0000 (16:24 +0100)
committerKeir Fraser <keir@xensource.com>
Sat, 12 May 2007 15:24:50 +0000 (16:24 +0100)
commit8665aa44c30b96457828d310f0140cd0987d78f1
tree9f0f3001b45cd38308d5b4d19f1c3c2d5c0a30c4
parentf313852e91a596e2f06cf008568e6adf08bf5ffd
hvm: Fix ACPI shutdown, broken by my previous changeset.

It turns out that although PIIX4 hardware defines the S5 type code to
be 000, all OSes will discover the correct code by evlauating an \_Sx
object in the ACPI DSDT. And we set the type code in that object to be
111.

So this patch keeps the other cleanups made to the piix4acpi.c file,
but switches back to checking for code 111. It also makes it clearer
in both the ioemu code and in the dsdt source code where these magic
numbers come from.

Let's hope noone actually has the true PIIX4 type codes hardcoded
(it's highly doubtful that anyone would).

Signed-off-by: Keir Fraser <keir@xensource.com>
tools/firmware/hvmloader/acpi/dsdt.asl
tools/firmware/hvmloader/acpi/dsdt.c
tools/ioemu/hw/piix4acpi.c